package com.test.mathexpr;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class TemplateQuestion {
	
	String id;
	
	String question;
	
	String answer;
	
	String rawQuestion;
	
	String rawAnswer;
	
	String category;
	
	Map<String, List> varList ;

	public TemplateQuestion(){
		varList = new HashMap<String,List>();
	}
	
	public  TemplateQuestion(TemplateQuestion q){
		this.answer = q.getAnswer();
		this.question = q.getQuestion();
		this.rawAnswer = q.getRawAnswer();
		this.rawQuestion  = q.getRawQuestion();
		this.category = q.getCategory();
	}
	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the question
	 */
	public String getQuestion() {
		return question;
	}

	/**
	 * @param question the question to set
	 */
	public void setQuestion(String question) {
		this.question = question;
	}

	/**
	 * @return the answer
	 */
	public String getAnswer() {
		return answer;
	}

	/**
	 * @param answer the answer to set
	 */
	public void setAnswer(String answer) {
		this.answer = answer;
	}

	/**
	 * @return the rawQuestion
	 */
	public String getRawQuestion() {
		return rawQuestion;
	}

	/**
	 * @param rawQuestion the rawQuestion to set
	 */
	public void setRawQuestion(String rawQuestion) {
		this.rawQuestion = rawQuestion;
	}

	/**
	 * @return the rawAnswer
	 */
	public String getRawAnswer() {
		return rawAnswer;
	}

	/**
	 * @param rawAnswer the rawAnswer to set
	 */
	public void setRawAnswer(String rawAnswer) {
		this.rawAnswer = rawAnswer;
	}

	/**
	 * @return the category
	 */
	public String getCategory() {
		return category;
	}

	/**
	 * @param category the category to set
	 */
	public void setCategory(String category) {
		this.category = category;
	}
	
	public boolean hasLocalVariables(){		
		return varList.size() > 0 ;
	}

	public Map<String, List> getVarList() {
		return varList;
	}

	public void setVarList(Map<String, List> varList) {
		this.varList = varList;
	}
	

}
